<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
<title>关闭子窗口</title>
</head>
<body>
<form name="form1">
    <input type="button" name="Button" value="关闭子窗口" onClick="newclose()">
</form>
<script type="text/javascript">
    var pp;
    pp=window.open("new.html","new","width=200,height=80");
    function newclose(){
	    pp.close();
    }
</script>
</body>
</html>
